package com.csxy.yuekaiyeye.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "EduTeacher对象")
public class EduTeacher implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(description = "讲师ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "讲师姓名")
    private String name;

    @Schema(description = "讲师简介")
    private String intro;

    @Schema(description = "讲师资历,一句话说明讲师")
    private String career;

    @Schema(description = "头衔 1高级讲师 2首席讲师")
    private Integer level;

    @Schema(description = "讲师头像")
    private String avatar;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "逻辑删除 1（true）已删除，0（false）未删除")
    @TableLogic
    private Boolean isDeleted;

    @Schema(description = "创建时间",example = "2021-09-01 09:09:09")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(description = "更新时间",example = "2021-09-01 09:09:09")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
